home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / System 7.0 Samples / MacShell / CtlHandler.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-04  |  671 b   |  28 lines  |  [TEXT/MPS ]

  1. #ifndef __CTLHANDLER__
  2. #define __CTLHANDLER__
  3.  
  4. #ifndef __TYPES__
  5. #include <Types.h>
  6. #endif
  7.  
  8. #ifndef __EVENTS__
  9. #include <Events.h>
  10. #endif
  11.  
  12. #ifndef __WINDOWS__
  13. #include <Windows.h>
  14. #endif
  15.  
  16. #define kScrollEvent        -1
  17.  
  18. short    Ctl2CNum(ControlHandle ctl);
  19. void    DoCtlActivate(WindowPtr window);
  20. short    GetButtonVariant(ControlHandle ctl);
  21. void    GetCheckBoxValues(WindowPtr window, Boolean checkBoxVal[]);
  22. short    GetRadioButtonChoice(WindowPtr window, short famNum);
  23. short    IsCtlEvent(WindowPtr window, EventRecord *event, ControlHandle *ctl, short *action);
  24. short    HandleScrollEvent(WindowPtr window, EventRecord *event, ControlHandle *retCtl, short *action);
  25.  
  26. #endif __CTLHANDLER__
  27.  
  28.